# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         student
# Description:
# Author:       $赵怡蕾
# Date:         2019/3/13
#-------------------------------------------------------------------------------

# Student    类属性：  姓名，年龄，专业，系，院，学校名称
# 来自  getinfo  方法

class Student(object):
    def __init__(self):
        self.name = 'zyl'
        self.age = 18
        self.zhuanye = "数学与应用数学"
        self.xi = "数学系"
        self.yuan = "理学院"
        self.school = "湖南工业大学"

    def getinfo(self):
        return "我叫{name},今年{age}岁,来自{school},{yuan},{xi},{zhuanye}班".format(name=self.name,
                                                                            age=self.age,
                                                                            school=self.school,
                                                                            yuan=self.yuan,
                                                                            xi=self.xi,
                                                                            zhuanye=self.zhuanye)

if __name__ == '__main__':
    m = Student()
    print(m.getinfo())
